<ul class="pagination pagination-sm no-margin pull-right">
    <li><a class="first">首页</a></li>
    <li><a class="pre">上一页</a></li>
    <li><a class="next">下一页</a></li>
    <li><a class="last">尾页</a></li>
    <li><a class="rowCount">总记录数(0)</a></li>
    <li><a class="pageCount">总页数(0)</a></li>
    <li><a class="pageCurrent">当前页(1)</a></li>
</ul>
<script type="text/javascript">
    function doSetPagination(page) {
        debugger;
        $(".rowCount").html("总记录数(" + page.rowCount + ")");
        $(".pageCount").html("总页数(" + page.pageCount + ")");
        $(".pageCurrent").html("当前页(" + page.pageCurrent + ")");
        $("#pageId").data("pageCurrent", page.pageCurrent);
        $("#pageId").data("pageCount", page.pageCount);
    }

    $(function () {
        debugger;
        $("#pageId").on("click", ".first,.pre,.next,.last", doJumpToPage);
    })

    function doJumpToPage() {
        debugger;
        var cls = $(this).prop("class");
        var pageCurrent = $("#pageId").data("pageCurrent");
        var pageCount = $("#pageId").data("pageCount");
        if (cls == "first") {
            pageCurrent = 1;
        } else if (cls == "pre" && pageCurrent > 1) {
            pageCurrent--;
        } else if (cls == "next" && pageCurrent < pageCount) {
            pageCurrent++;
        } else if (cls == "last") {
            pageCurrent = pageCount;
        } else {
            return;
        }
        $("#pageId").data("pageCurrent", pageCurrent);
        doGetObjects();


    }
</script>








